package org.dromara.business.domain.bo;

import org.dromara.business.domain.ZjFileManage;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

/**
 * 文件管理业务对象 zj_file_manage
 *
 * @author sky丶Happy
 * @date 2024-12-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ZjFileManage.class, reverseConvertGenerate = false)
public class ZjFileManageBo extends BaseEntity {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称（例如：文化手册、企业画册、VI手册等）字典
     */
    @NotBlank(message = "名称（例如：文化手册、企业画册、VI手册等）字典不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 封面（存oss表id）
     */
    @NotBlank(message = "封面（存oss表id）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cover;

    /**
     * 文件名称
     */
    @NotBlank(message = "文件名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 文件类型
     */
    @NotBlank(message = "文件类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileType;

    /**
     * 文件大小
     */
    @NotBlank(message = "文件大小不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileSize;

    /**
     * 文件地址（存oss表id）
     */
    @NotBlank(message = "文件地址（存oss表id）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String filePath;

    /**
     * 显示顺序
     */
    @NotNull(message = "显示顺序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;

    /**
     * 状态文件是否发布（0正常 1停用）
     */
    @NotBlank(message = "状态文件是否发布（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
